package com.ruoyi.system.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Arrays;
import java.util.Date;

/**
 * 内容对象 rc_html
 *
 * @author ruoyi
 * @date 2023-07-27
 */
public class RcHtmlVo {
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 编码 */
    @Excel(name = "编码")
    private String slug;

    /** 分类 */
    @Excel(name = "分类")
    private String cate;

    private String[] cateList;
    private String search;
    private String searchTxt;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 内容 */
    @Excel(name = "内容")
    private String html;

    /** f附件 */
    @Excel(name = "f附件")
    private String files;

    /** 导航图 */
    @Excel(name = "导航图")
    private String pic;

    /** 来源 */
    @Excel(name = "来源")
    private String from;

    /** 排序 */
    @Excel(name = "排序")
    private String index;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deployTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setSlug(String slug)
    {
        this.slug = slug;
    }

    public String getSlug()
    {
        return slug;
    }
    public void setCate(String cate)
    {
        this.cate = cate;
    }

    public String getCate()
    {
        return cate;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setHtml(String html)
    {
        this.html = html;
    }

    public String getHtml()
    {
        return html;
    }
    public void setPic(String pic)
    {
        this.pic = pic;
    }

    public String getPic()
    {
        return pic;
    }
    public void setFrom(String from)
    {
        this.from = from;
    }

    public String getFrom()
    {
        return from;
    }
    public void setIndex(String index)
    {
        this.index = index;
    }

    public String getIndex()
    {
        return index;
    }

    public String[] getCateList() {
        return cateList;
    }

    public void setCateList(String[] cateList) {
        this.cateList = cateList;
    }

    public Date getDeployTime() {
        return deployTime;
    }

    public void setDeployTime(Date deployTime) {
        this.deployTime = deployTime;
    }

    public String getSearch() {
        return search;
    }

    public void setSearch(String search) {
        this.search = search;
    }

    public String getSearchTxt() {
        return searchTxt;
    }

    public void setSearchTxt(String searchTxt) {
        this.searchTxt = searchTxt;
    }

    public String getFiles() {
        return files;
    }

    public void setFiles(String files) {
        this.files = files;
    }

    @Override
    public String toString() {
        return "RcHtml{" +
                "id=" + id +
                ", slug='" + slug + '\'' +
                ", cate='" + cate + '\'' +
                ", cateList=" + Arrays.toString(cateList) +
                ", search='" + search + '\'' +
                ", searchTxt='" + searchTxt + '\'' +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", html='" + html + '\'' +
                ", files='" + files + '\'' +
                ", pic='" + pic + '\'' +
                ", from='" + from + '\'' +
                ", index='" + index + '\'' +
                ", deployTime=" + deployTime +
                '}';
    }
}
